package com.leco.demo.spring.config;

import com.leco.demo.spring.beans.Bean1;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author greg
 * @version 2022/10/23
 **/
@Configuration
@ComponentScan("com.leco.demo.spring.component")
public class Config {
    @Bean
    public Bean1 bean1() {
        return new Bean1();
    }
}
